<template>
	<view class="evaluation">
		<image :src="params.gameBg" class="bg" mode="aspectFill"></image>
		<view class="evaluation-box">
			<view class="game-result">
				<image src="../../static/img/result.png" mode="heightFix"></image>
				<view class="card">
					<image class="title" :src="data.headerImg" mode="aspectFit"></image>

					<image class="result" :src="data.masterMap" ></image>
					
					<view class="game-btns">
						<navigator class="btn" open-type="reLaunch" url="/pages/index/index">更多好玩</navigator>
						<navigator class="btn" open-type="navigateBack">再测一次</navigator>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['data'],
		data() {
			return {
				params: { // 图片参数
					gameBg: 'https://file.91daihuo.cn/7c000f1438bf4058ab1fbf966a54a1cb.png',
					gameContent: require('static/img/game_content.png')
				},
			}
		},
		methods: {
			more() {
				uni.reLaunch("/pages/index/index")
			},
			again() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.evaluation {
		position: relative;

		&-box {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100vh;
			display: flex;
			justify-content: center;
		}

		.bg {
			width: 100vw;
			height: 100vh;
		}
	}

	.game-result {
		width: 672rpx;
		height: 1062rpx;
		position: relative;
		margin-top: 170rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.card {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		padding: 0 20rpx;
		color: #5EA6FF;

		.result {
			width: 100%;
			height: 790rpx;
		}

		.title {
			width: 494rpx;
			height: 70rpx;
			display: block;
			margin: 20rpx auto 116rpx;
		}
	}

	.game-btns {
		position: absolute;
		width: 100%;
		bottom: -20rpx;
		left: 0;
		display: flex;
		justify-content: space-around;
		padding: 0 40rpx;
		
		.btn {
			text-align: center;
			width: 212rpx;
			height: 76rpx;
			line-height: 76rpx;
			background: #3f0aa9;
			border-radius: 16rpx;
			overflow: hidden;
			color: #FFFFFF;
			font-size: 34rpx;
		}
	}
</style>
